﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ESF.General.Entity;
using ESF.Services.GeneralDirectory.DataAccess;

#endregion


namespace ESF.Services.GeneralDirectory
{
	public class GeneralDirectory : IGeneralDirectory
	{
		public BaseEnterprise GetEnterprise(string pIdentificationTypeCode, string pIdentificationNumber)
		{
			return AdoEnterprise.GetEnterprise (pIdentificationTypeCode, pIdentificationNumber);
		}


		public List<BaseEnterprise> GetAllEnterprises()
		{
			return GetEnterprises ();
		}


		public List<BaseEnterprise> GetEnterprises(string pSearchTerms = null)
		{
			return AdoEnterprise.GetEnterprises (pSearchTerms);
		}
	}
}
